﻿<%@ Page Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="ReturnGoodsOderListEmpty.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.SalesReturn.ReturnGoodsOderListEmpty"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="ReturnGoodsOderListUnSubmit.aspx">未提交</a></li>
            <li><a href="ReturnGoodsOderList.aspx">已提交</a></li>
            <li class="active"><a href="ReturnGoodsOderListEmpty.aspx">空单</a></li>
             <li><a href="RetrunGoodsOderdetail.aspx">退货单详情</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                退货单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtReturnlName" runat="server"></asp:TextBox>
                            </td>
                            <td align="left">
                                退货时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtReturnTimeBegin" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtReturnTimeEnd" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                        Width="62px"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="退货单名称">
                <ItemTemplate>
                    <%# getstring(Eval("ReturnSerialID"), Eval("ReturnName"))%>
                    <asp:Label runat="server" ID="lblReturnName" Text='<%#(DataBinder.Eval(Container,"DataItem.ReturnName")) %>'
                        ToolTip="点击进入查看退货单详细信息"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ReturnTime" HeaderText="退货时间" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:TemplateField HeaderText="退货单状态">
                <ItemTemplate>
                    <%# Getstatus(Eval("ReturnOrderStatus"))%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" ">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkreturn" id="chkReturn" value='<%#Eval("ReturnSerialID")%>'
                        <%#Eval("ReturnOrderStatus").ToString() == "2" ? "disabled='disabled'" : ""%>
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
    </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 点击相应退货单，进入“添加退货产品” 页面选择退货产品。完成勾选操作后回到本页面提交该退货单。提交后退货单将无法修改。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAdd0" runat="server" Text="新建退货单" OnClientClick="window.location='ReturnGoodsOrderAdd.aspx';return false;"
            CssClass="btn" ToolTip="添加新的退货单" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="btnAdd" runat="server" Text="提交退货单" CssClass="btn" OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一条退货单！')){return confirm('确定要提交该退货单？');}return false;"
            OnClick="btnAdd_Click" ToolTip="将所选的退货单提交给配送商" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="btnDele" runat="server" Text="删除" CssClass="btn" OnClientClick="return checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一条退货单！') && confirm('确定删除吗？');"
            OnClick="btnDele_Click" ToolTip="删除所选的退货单" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                        OnClick="btnExport_Click" />
    </div>
</asp:Content>
